home *** CD-ROM | disk | FTP | other *** search
- Path: GIMLI.genias.de!usenet
- From: Andreas Haas <andreas>
- Newsgroups: comp.lang.c++,comp.unix.programmer
- Subject: Re: c++ static objects and fork
- Date: 26 Jan 1996 15:08:04 GMT
- Organization: GENIAS Software GmbH
- Message-ID: <4eaqok$7pr@GIMLI.genias.de>
- References: <4e8qu5$cmb@news02.comp.pge.com>
- NNTP-Posting-Host: balin.genias.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.2 sun4c)
- X-URL: news:4e8qu5$cmb@news02.comp.pge.com
-
- Hi Phil,
-
- I didn't test your question with an example. But I would
- say that nothing happens to these static objects.
- What should happen?
-
- fork() makes a copy of the whole writable memory of the
- forked process (some special operations are done with
- open file descriptors) and starts a new process (one
- could say fork() is a kind of copy constructor for
- processes).
-
- Did you expect that fork() would call a copy
- constructor for static objects?
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Andreas Haas
- GENIAS Software GmbH | Email: andreas@genias.de
- Erzgebirgstr. 2 B | Tel.: ++49 +9401 9200-0/41
- D-93073 Neutraubling/Germany | FAX: ++49 +9401 9200-92
- http://www.genias.de |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-